﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Lapv.Master" AutoEventWireup="true"
    CodeBehind="SurveyManager.aspx.cs" Inherits="Lapv.page.SurveyManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" runat="server">
    <%--menu tab  --%>
    <div class="tabnav">
        <ul>
            <li class="active"><a href="<%= domain%>Pages/SurveyManager.aspx" class="list_d">D/S Survey</a></li>
            <li><a href="<%= domain%>Pages/Surveyadd.aspx" class="add_t">Thêm
                survey</a></li>
        </ul>
        <div class="clr">
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="server">
    <asp:DataGrid CssClass="table1" runat="server" ID="dtgridNews" AutoGenerateColumns="false"
        Width="100%" OnItemCommand="functionGridNews">
        <Columns>
            <asp:TemplateColumn HeaderText="Mã" ItemStyle-Width="">
                <ItemTemplate>
                    <%# Eval("id")%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="Nội dung" ItemStyle-Width="">
                <ItemTemplate>
                    <%# Eval("question")%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="Ý kiến 1" ItemStyle-Width="150">
                <ItemTemplate>
                    <%# Eval("answer1")%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="Ý kiến 2" ItemStyle-Width="150">
                <ItemTemplate>
                    <%# Eval("answer2")%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="Ý kiến 3" ItemStyle-Width="150">
                <ItemTemplate>
                    <%# Eval("answer3")%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="Vote 1" ItemStyle-Width="35">
                <ItemTemplate>
                    <%# Eval("vote1")%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="Vote 2" ItemStyle-Width="35">
                <ItemTemplate>
                    <%# Eval("vote2")%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="Vote 3" ItemStyle-Width="35">
                <ItemTemplate>
                    <%# Eval("vote3")%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="Sửa" ItemStyle-Width="35">
                <ItemTemplate>
                    <a href='<%= domain %>Pages/Surveyadd.aspx?id=<%# Eval("id") %>'>
                        <img alt="Sửa" src="../styles/imgs/edit.gif" border="0" />
                    </a>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="Xóa" ItemStyle-Width="35">
                <ItemTemplate>
                    <asp:ImageButton OnClick="btnDelete_Click" ID="btnDelete" ImageUrl="~/styles/imgs/delete.gif"
                        runat="server" BorderWidth="0" CommandArgument='<%# Eval("Id") %>' OnClientClick="return confirm('Xóa tin vĩnh viễn?')" />
                </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
        <AlternatingItemStyle CssClass="row2" />
    </asp:DataGrid>
</asp:Content>
